package com.sunnay.exception;

public class SunayException extends RuntimeException {

    public String code;

    private String field;

    public SunayException() {
        super();
    }

    public SunayException(String message) {
        super(message);
    }

    public SunayException(String message, Throwable cause) {
        super(message, cause);
    }

    public SunayException(Throwable cause) {
        super(cause);
    }

    public SunayException(String code,String message){
        super(message);
        this.code = code;
    }

    public SunayException(String field, String message, String code) {
        super(message);
        this.field = field;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public String getField() {
        return field;
    }
}
